package nullInvader.Engine;

import java.awt.Point;
import java.io.IOException;

import javax.imageio.ImageIO;

/**
 * Applikationsutveckling i Java, 5DV135 HT12 Project
 * 
 * File: UnitKnight.java Description: A simple unit that mainly uses the methods
 * in the abstract Class
 * 
 * @see Unit
 * 
 *      Date: 17 december 2012
 * 
 *      cs-user: dv11flh
 * @author Fredrik Loch
 */
public class UnitKnight extends Unit {

	public UnitKnight(Point startPos, Player p, int price) {
		super(startPos, p, price);
		this.health = 20;
		setIcon();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see Unit#setIcon()
	 */
	@Override
	protected void setIcon() {
		try {
			icon = ImageIO.read(getClass().getResource(
					"/nullInvader/Resources/Unit1.png"));
		} catch (IOException e) {
			System.out.println("Unit1.png doesn't exist");
		}
	}

	@Override
	public void interact() {
	}

}
